package cn.iocoder.yudao.module.handguard.controller.app.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * 会员用户 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class UserBaseVO {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300")
    @NotNull(message = "手机号不能为空")
    private String mobile;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Byte status;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotNull(message = "用户昵称不能为空")
    private String nickname;

    @Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    private String username;

    @Schema(description = "头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/x.png")
    private String avatar;

    @Schema(description = "用户昵称", example = "李四")
    private String name;

    @Schema(description = "用户类型：1用户端，2：业务员端，3：权证端")
    private String userType;

    @Schema(description = "备注/业务员介绍")
    private String remark;

    @Schema(description = "户籍")
    private String censusRegister;

    @Schema(description = "户口")
    private String registeredHk;

    @Schema(description = "推荐人")
    private Long referrer;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "用户性别", example = "1")
    private Integer sex;


    @Schema(description = "出生日期", example = "2023-03-12")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime birthday;

    @Schema(description = "会员等级编号", example = "1")
    private Long levelId;

    @Schema(description = "用户分组编号", example = "1")
    private Long groupId;

    @Schema(description = "业务员id")
    private Long agentId;

    @Schema(description = "业务员姓名")
    private String agentName;

    @Schema(description = "权证员id")
    private Long warrantId;

    @Schema(description = "权证员姓名")
    private String warrantName;

    @Schema(description = "首页推荐 0：关闭，1：开启")
    private String isHome;

    @Schema(description = "我的财富值")
    private BigDecimal wealthValue;

    @Schema(description = "身份证号")
    private String identityCard;

    @Schema(description = "微信openId")
    private String openId;

    @Schema(description = "标签")
    private String customLabel;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
